package com.zzj.ecology.admin.controller.test;

import com.zzj.ecology.framework.annotation.Pagination;
import com.zzj.ecology.system.domain.Paging;
import com.zzj.ecology.system.dto.R;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.security.PermitAll;

/**
 * @ClassName PagnationController
 * @Description TODO
 * @Author zhijun zeng at 14:15 2020/5/30
 * @Version 1.0
 **/
@RestController
@RequestMapping("/test")
public class PaginationController {

    @PermitAll
    @RequestMapping("/page/list")
    public R testPagnation(@Pagination Paging pagination) {
        System.out.println(pagination);
        return R.ng();
    }
}
